package work.work70;

/**
 * 父类人
 */
public class People {
    private String name;
    private int level;
    public People(){}

    public People(String name) {
        this.name = name;
    }
    public People(String name,int level){
        this.name = name;
        this.level = level;
    }

    public void selflntroduce(){
        System.out.println("我是：" + this.getName() +"，等级："+this.getLevel());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
